How can I structure my JavaScript code to separate properties of myObject and its subObject

welcome to shbcf.ru